package com.lagou.java;

/*
*   上网套餐类
* */
public class FlowPackage extends Package implements InternetService {
    private int netflow;        //上网流量

    FlowPackage(){}

    FlowPackage(int netflow, double monthlyrate){
        this.netflow = netflow;
        this.monthlyrate = monthlyrate;
    }

    @Override
    public void show() {
        System.out.println("上网流量(MB):"+ netflow + ",每月资费:"+ monthlyrate);
    }

    @Override
    public void service(int netflow, MobileCard mobileCard) {
        mobileCard.show();
        System.out.println("上网流量(MB):"+ netflow);
    }
}
